#include <stdio.h>
int *find_middle(int a[], int n) {
    int mid = n / 2;
    return &a[mid];
}

int main() {
    int arr1[3] = {1, 2, 3};   
    int arr2[4] = {4, 5, 6, 7};

    printf("arr1中间元素:%d\n", *find_middle(arr1, 3));
    printf("arr2中间元素:%d\n", *find_middle(arr2, 4));
    return 0;
}